package com.battcn.controller;

import com.battcn.vo.Student;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(value = "首页")
public class IndexController {



    @PostMapping(value = "index", produces = "application/json")
    @ApiOperation(value = "测试")
    public Student index(Student student) {
        System.out.println(student.getName());
        return student;
    }
}
